package com.example.springbootexp03demo.InitalData;

import com.example.springbootexp03demo.services.CrawlVirusData;

import javax.annotation.PostConstruct;

//@Component
public class PostConstructAnnotation {

    @PostConstruct
    public void init() throws Exception {
        CrawlVirusData crawlVirusData = new CrawlVirusData();
        crawlVirusData.fetchCoronaVirusData();
        System.out.println("Crawl Data Success");
    }
}
